<?php



class RoomMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RoomMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('room');
		$tMap->setPhpName('Room');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ROOMNAME', 'Roomname', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('CONTENT', 'Content', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('PHOTO', 'Photo', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('CATEGORY_ID', 'CategoryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PLACE', 'Place', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('STATE', 'State', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('KEEPER', 'Keeper', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('RESERVATION_YN', 'ReservationYn', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('OCCUPIED_YN', 'OccupiedYn', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 